<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>jt_toolkit: include/JtHierarchy.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">jt_toolkit
   &#160;<span id="projectnumber">0.1dev</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">JtHierarchy.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// Copyright (C) 2019 by bitbybit3d, All rights reserved. </span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Author: bitbybit3d@163.com </span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// </span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// </span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OF ANY KIND,</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, </span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"></span><span class="preprocessor">#ifndef __JT_TOOLKIT_HIERARCHY_H_</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define __JT_TOOLKIT_HIERARCHY_H_</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;JtEntity.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;JtAttrib.h&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;JtProperty.h&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;JtShape.h&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_jt_hierarchy.html">   24</a></span>&#160;<span class="keyword">class </span>JT_TOOLKIT_EXPORT <a class="code" href="class_jt_hierarchy.html">JtHierarchy</a> : <span class="keyword">public</span> <a class="code" href="class_jt_entity.html">JtEntity</a></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <a class="code" href="class_jt_hierarchy.html">JtHierarchy</a>();</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="class_jt_hierarchy.html">JtHierarchy</a>() {}</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_jt_hierarchy.html#ab1d10ffd5eda762c4b4b4cd1491dbc64">   35</a></span>&#160;    <span class="keyword">static</span> TypeID <a class="code" href="class_jt_hierarchy.html#ab1d10ffd5eda762c4b4b4cd1491dbc64">classTypeID</a>();</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="class_jt_hierarchy.html#ac6f6e29d168cc7d6d115e0e1437bdd52">   39</a></span>&#160;    <span class="keyword">virtual</span> TypeID <a class="code" href="class_jt_hierarchy.html#ac6f6e29d168cc7d6d115e0e1437bdd52">typeID</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="class_jt_hierarchy.html#a8074c52ed44e66bd583e5cd27d6a1b57">   43</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_jt_hierarchy.html#a8074c52ed44e66bd583e5cd27d6a1b57">isOfSubType</a>(TypeID <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="comment">// Basic ID APIs</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">virtual</span> std::wstring name() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setName(<span class="keyword">const</span> std::wstring&amp; nm) = 0;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> version() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setId(<span class="keywordtype">int</span> InstId) = 0;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> getId() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="comment">// graph-related APIs</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;JtHierarchy&gt; parent() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="comment">// properties</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_jt_hierarchy.html#a71debc505374a37c0d1ada9a7b6f7c06">   59</a></span>&#160;<span class="comment"></span>    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_jt_hierarchy.html#a71debc505374a37c0d1ada9a7b6f7c06">numProps</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> addProp(std::shared_ptr&lt;JtProperty&gt; prop) = 0;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;JtProperty&gt; getProp(<span class="keywordtype">int</span> index) <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="comment">// attributes</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="class_jt_hierarchy.html#ac514c57e69a2f70f1e3a80d82f802ae6">   68</a></span>&#160;<span class="comment"></span>    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_jt_hierarchy.html#ac514c57e69a2f70f1e3a80d82f802ae6">addAttrib</a>(std::shared_ptr&lt;JtAttrib&gt; attrib) = 0;</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="class_jt_hierarchy.html#a4b3cb37a2e23c5106cebac04329ef09d">   72</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_jt_hierarchy.html#a4b3cb37a2e23c5106cebac04329ef09d">numAttribs</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_jt_hierarchy.html#a01831e049854eb9ee03dc03990f68a74">   76</a></span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;JtAttrib&gt; <a class="code" href="class_jt_hierarchy.html#a01831e049854eb9ee03dc03990f68a74">getAttrib</a>(<span class="keywordtype">int</span> index) <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="comment">// JT file structure (&quot;shattering&quot;) APIs</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setJtFilename(<span class="keyword">const</span> std::wstring&amp; JtFileName) = 0;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keyword">virtual</span> std::wstring getJtFilename() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;};</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_jt_unit_hierarchy.html">   87</a></span>&#160;<span class="keyword">class </span>JT_TOOLKIT_EXPORT <a class="code" href="class_jt_unit_hierarchy.html">JtUnitHierarchy</a> : <span class="keyword">public</span> <a class="code" href="class_jt_hierarchy.html">JtHierarchy</a></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;{</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <a class="code" href="class_jt_unit_hierarchy.html">JtUnitHierarchy</a>();</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="class_jt_unit_hierarchy.html#a1ece73735ec5419a7933acd1293af472">   96</a></span>&#160;    <span class="keyword">static</span> TypeID <a class="code" href="class_jt_unit_hierarchy.html#a1ece73735ec5419a7933acd1293af472">classTypeID</a>();</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="class_jt_unit_hierarchy.html#a2a3611484d5bb7302f3090297664e69c">  100</a></span>&#160;    <span class="keyword">virtual</span> TypeID <a class="code" href="class_jt_unit_hierarchy.html#a2a3611484d5bb7302f3090297664e69c">typeID</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="class_jt_unit_hierarchy.html#add82bc6b589da0c1f7595aca49dfa5d4">  104</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_jt_unit_hierarchy.html#add82bc6b589da0c1f7595aca49dfa5d4">isOfSubType</a>(TypeID <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keyword">enum</span> JtkUnits</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    {</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        JtkUNKNOWN = 0,</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        JtkMICROMETERS,</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        JtkMILLIMETERS,</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        JtkCENTIMETERS,</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        JtkDECIMETERS,</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        JtkMETERS,</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        JtkKILOMETERS,</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        JtkINCHES,</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        JtkFEET,</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        JtkYARDS,</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        JtkMILES,</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        JtkMILS</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    };</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="comment">// Measurement units APIs</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> setUnits(JtkUnits units) = 0;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keyword">virtual</span> JtkUnits getUnits() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="comment">// Instance APIs</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> numInstances() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;};</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="class_jt_assembly.html">  140</a></span>&#160;<span class="keyword">class </span>JT_TOOLKIT_EXPORT <a class="code" href="class_jt_assembly.html">JtAssembly</a> : <span class="keyword">public</span> <a class="code" href="class_jt_unit_hierarchy.html">JtUnitHierarchy</a></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;{</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <a class="code" href="class_jt_assembly.html">JtAssembly</a>();</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="class_jt_assembly.html#a822b9b1deeab92c2862d736f6f75e7b8">  150</a></span>&#160;    <span class="keyword">static</span> TypeID <a class="code" href="class_jt_assembly.html#a822b9b1deeab92c2862d736f6f75e7b8">classTypeID</a>();</div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="class_jt_assembly.html#a24c863f8a00b448d9fd0f2edb043c780">  154</a></span>&#160;    <span class="keyword">virtual</span> TypeID <a class="code" href="class_jt_assembly.html#a24c863f8a00b448d9fd0f2edb043c780">typeID</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="class_jt_assembly.html#adbf539f4d1638709a71a7ca4990dd199">  159</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_jt_assembly.html#adbf539f4d1638709a71a7ca4990dd199">isOfSubType</a>(TypeID <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="class_jt_assembly.html#a069cc78543006839ac18a063295e8694">  164</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_jt_assembly.html#a069cc78543006839ac18a063295e8694">addChild</a>(std::shared_ptr&lt;JtHierarchy&gt; son) = 0;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160; </div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="class_jt_assembly.html#a5d7dbb54e0ae063a68a8dcb1f1adb555">  169</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_jt_assembly.html#a5d7dbb54e0ae063a68a8dcb1f1adb555">numChildren</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="class_jt_assembly.html#ad3f2a1006901cf7d1762c43a606134cb">  174</a></span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;JtHierarchy&gt; <a class="code" href="class_jt_assembly.html#ad3f2a1006901cf7d1762c43a606134cb">child</a>(<span class="keywordtype">int</span> index) <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;};</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160; </div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="class_jt_part.html">  183</a></span>&#160;<span class="keyword">class </span>JT_TOOLKIT_EXPORT <a class="code" href="class_jt_part.html">JtPart</a> : <span class="keyword">public</span> <a class="code" href="class_jt_unit_hierarchy.html">JtUnitHierarchy</a></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;{</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <a class="code" href="class_jt_part.html">JtPart</a>();</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="class_jt_part.html#af2caef9c612bc71c6712d1fdd3267ffb">  193</a></span>&#160;    <span class="keyword">static</span> TypeID <a class="code" href="class_jt_part.html#af2caef9c612bc71c6712d1fdd3267ffb">classTypeID</a>();</div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="class_jt_part.html#a7f736c8d590b07affa76c7b8a62f5e1f">  197</a></span>&#160;    <span class="keyword">virtual</span> TypeID <a class="code" href="class_jt_part.html#a7f736c8d590b07affa76c7b8a62f5e1f">typeID</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; </div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="class_jt_part.html#a98f142705b1ca8a98d1da475dbcdc8ca">  202</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_jt_part.html#a98f142705b1ca8a98d1da475dbcdc8ca">isOfSubType</a>(TypeID <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160; </div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> addPolyShape(std::shared_ptr&lt;JtShape&gt; shape, <span class="keywordtype">int</span> LODNum = 0) = 0;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="class_jt_part.html#adf77884066a5cfa19f4ef7070eb118a1">  209</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_jt_part.html#adf77884066a5cfa19f4ef7070eb118a1">numPolyLODs</a>() = 0;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160; </div>
<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="class_jt_part.html#ab4953025138924710e35060c2ab8787c">  214</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_jt_part.html#ab4953025138924710e35060c2ab8787c">numPolyShapes</a>(<span class="keywordtype">int</span> LODNum) = 0;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;JtShape&gt; getPolyShape(<span class="keywordtype">int</span> LODNum, <span class="keywordtype">int</span> index) = 0;</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;};</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="class_jt_instance.html">  223</a></span>&#160;<span class="keyword">class </span>JT_TOOLKIT_EXPORT <a class="code" href="class_jt_instance.html">JtInstance</a> : <span class="keyword">public</span> <a class="code" href="class_jt_hierarchy.html">JtHierarchy</a></div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;{</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <a class="code" href="class_jt_instance.html">JtInstance</a>();</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160; </div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160; </div>
<div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="class_jt_instance.html#aac40720af779b24d91a1c011b784d232">  233</a></span>&#160;    <span class="keyword">static</span> TypeID <a class="code" href="class_jt_instance.html#aac40720af779b24d91a1c011b784d232">classTypeID</a>();</div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="class_jt_instance.html#a533277c9c3ce0ff97d1d1efa863d9a72">  237</a></span>&#160;    <span class="keyword">virtual</span> TypeID <a class="code" href="class_jt_instance.html#a533277c9c3ce0ff97d1d1efa863d9a72">typeID</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; </div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="class_jt_instance.html#a30318416785d265e25486e21e3258624">  242</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_jt_instance.html#a30318416785d265e25486e21e3258624">isOfSubType</a>(TypeID <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160; </div>
<div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="class_jt_instance.html#a3b33e3d9d30aa8f27e26fff675f41c78">  247</a></span>&#160;    <span class="keyword">virtual</span> std::shared_ptr&lt;JtHierarchy&gt; <a class="code" href="class_jt_instance.html#a3b33e3d9d30aa8f27e26fff675f41c78">original</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;};</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160; </div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="preprocessor">#endif  </span><span class="comment">// __JT_TOOLKIT_HIERARCHY_H_</span></div>
<div class="ttc" id="aclass_jt_assembly_html"><div class="ttname"><a href="class_jt_assembly.html">JtAssembly</a></div><div class="ttdoc">The object for defining non-leaf nodes in a product structure hierarchy. Any hierarchy object may be ...</div><div class="ttdef"><b>Definition:</b> JtHierarchy.h:141</div></div>
<div class="ttc" id="aclass_jt_assembly_html_a069cc78543006839ac18a063295e8694"><div class="ttname"><a href="class_jt_assembly.html#a069cc78543006839ac18a063295e8694">JtAssembly::addChild</a></div><div class="ttdeci">virtual int addChild(std::shared_ptr&lt; JtHierarchy &gt; son)=0</div><div class="ttdoc">Adds any JtHierarchy-derived object as a child of this assembly.</div></div>
<div class="ttc" id="aclass_jt_assembly_html_a24c863f8a00b448d9fd0f2edb043c780"><div class="ttname"><a href="class_jt_assembly.html#a24c863f8a00b448d9fd0f2edb043c780">JtAssembly::typeID</a></div><div class="ttdeci">virtual TypeID typeID() const</div><div class="ttdoc">Return the TypeID for instance.</div></div>
<div class="ttc" id="aclass_jt_assembly_html_a5d7dbb54e0ae063a68a8dcb1f1adb555"><div class="ttname"><a href="class_jt_assembly.html#a5d7dbb54e0ae063a68a8dcb1f1adb555">JtAssembly::numChildren</a></div><div class="ttdeci">virtual int numChildren() const =0</div><div class="ttdoc">Get the number of children.</div></div>
<div class="ttc" id="aclass_jt_assembly_html_a822b9b1deeab92c2862d736f6f75e7b8"><div class="ttname"><a href="class_jt_assembly.html#a822b9b1deeab92c2862d736f6f75e7b8">JtAssembly::classTypeID</a></div><div class="ttdeci">static TypeID classTypeID()</div><div class="ttdoc">Return the TypeID for class.</div></div>
<div class="ttc" id="aclass_jt_assembly_html_ad3f2a1006901cf7d1762c43a606134cb"><div class="ttname"><a href="class_jt_assembly.html#ad3f2a1006901cf7d1762c43a606134cb">JtAssembly::child</a></div><div class="ttdeci">virtual std::shared_ptr&lt; JtHierarchy &gt; child(int index) const =0</div><div class="ttdoc">Gets a JtHierarchy child by index.</div></div>
<div class="ttc" id="aclass_jt_assembly_html_adbf539f4d1638709a71a7ca4990dd199"><div class="ttname"><a href="class_jt_assembly.html#adbf539f4d1638709a71a7ca4990dd199">JtAssembly::isOfSubType</a></div><div class="ttdeci">virtual bool isOfSubType(TypeID id) const</div><div class="ttdoc">Return true if instance belong to the type id.</div></div>
<div class="ttc" id="aclass_jt_entity_html"><div class="ttname"><a href="class_jt_entity.html">JtEntity</a></div><div class="ttdoc">The root class.</div><div class="ttdef"><b>Definition:</b> JtEntity.h:32</div></div>
<div class="ttc" id="aclass_jt_hierarchy_html"><div class="ttname"><a href="class_jt_hierarchy.html">JtHierarchy</a></div><div class="ttdoc">The base class for all product structure objects ( JtAssembly, JtPart, and JtInstance).</div><div class="ttdef"><b>Definition:</b> JtHierarchy.h:25</div></div>
<div class="ttc" id="aclass_jt_hierarchy_html_a01831e049854eb9ee03dc03990f68a74"><div class="ttname"><a href="class_jt_hierarchy.html#a01831e049854eb9ee03dc03990f68a74">JtHierarchy::getAttrib</a></div><div class="ttdeci">virtual std::shared_ptr&lt; JtAttrib &gt; getAttrib(int index) const =0</div><div class="ttdoc">Gets the JtAttribute by index.</div></div>
<div class="ttc" id="aclass_jt_hierarchy_html_a4b3cb37a2e23c5106cebac04329ef09d"><div class="ttname"><a href="class_jt_hierarchy.html#a4b3cb37a2e23c5106cebac04329ef09d">JtHierarchy::numAttribs</a></div><div class="ttdeci">virtual int numAttribs() const =0</div><div class="ttdoc">Get the number of attributes.</div></div>
<div class="ttc" id="aclass_jt_hierarchy_html_a71debc505374a37c0d1ada9a7b6f7c06"><div class="ttname"><a href="class_jt_hierarchy.html#a71debc505374a37c0d1ada9a7b6f7c06">JtHierarchy::numProps</a></div><div class="ttdeci">virtual int numProps() const =0</div><div class="ttdoc">Get the number of properties.</div></div>
<div class="ttc" id="aclass_jt_hierarchy_html_a8074c52ed44e66bd583e5cd27d6a1b57"><div class="ttname"><a href="class_jt_hierarchy.html#a8074c52ed44e66bd583e5cd27d6a1b57">JtHierarchy::isOfSubType</a></div><div class="ttdeci">virtual bool isOfSubType(TypeID id) const</div><div class="ttdoc">Return true if instance belong to the type id.</div></div>
<div class="ttc" id="aclass_jt_hierarchy_html_ab1d10ffd5eda762c4b4b4cd1491dbc64"><div class="ttname"><a href="class_jt_hierarchy.html#ab1d10ffd5eda762c4b4b4cd1491dbc64">JtHierarchy::classTypeID</a></div><div class="ttdeci">static TypeID classTypeID()</div><div class="ttdoc">Return the TypeID for class.</div></div>
<div class="ttc" id="aclass_jt_hierarchy_html_ac514c57e69a2f70f1e3a80d82f802ae6"><div class="ttname"><a href="class_jt_hierarchy.html#ac514c57e69a2f70f1e3a80d82f802ae6">JtHierarchy::addAttrib</a></div><div class="ttdeci">virtual int addAttrib(std::shared_ptr&lt; JtAttrib &gt; attrib)=0</div><div class="ttdoc">Set the JtAttribute to this node.</div></div>
<div class="ttc" id="aclass_jt_hierarchy_html_ac6f6e29d168cc7d6d115e0e1437bdd52"><div class="ttname"><a href="class_jt_hierarchy.html#ac6f6e29d168cc7d6d115e0e1437bdd52">JtHierarchy::typeID</a></div><div class="ttdeci">virtual TypeID typeID() const</div><div class="ttdoc">Return the TypeID for instance.</div></div>
<div class="ttc" id="aclass_jt_instance_html"><div class="ttname"><a href="class_jt_instance.html">JtInstance</a></div><div class="ttdoc">Reference object pointing to an either a JtkAssembly or JtkPart object. Used to avoid physical duplic...</div><div class="ttdef"><b>Definition:</b> JtHierarchy.h:224</div></div>
<div class="ttc" id="aclass_jt_instance_html_a30318416785d265e25486e21e3258624"><div class="ttname"><a href="class_jt_instance.html#a30318416785d265e25486e21e3258624">JtInstance::isOfSubType</a></div><div class="ttdeci">virtual bool isOfSubType(TypeID id) const</div><div class="ttdoc">Return true if instance belong to the type id.</div></div>
<div class="ttc" id="aclass_jt_instance_html_a3b33e3d9d30aa8f27e26fff675f41c78"><div class="ttname"><a href="class_jt_instance.html#a3b33e3d9d30aa8f27e26fff675f41c78">JtInstance::original</a></div><div class="ttdeci">virtual std::shared_ptr&lt; JtHierarchy &gt; original() const =0</div><div class="ttdoc">A pointer to the node being instanced.</div></div>
<div class="ttc" id="aclass_jt_instance_html_a533277c9c3ce0ff97d1d1efa863d9a72"><div class="ttname"><a href="class_jt_instance.html#a533277c9c3ce0ff97d1d1efa863d9a72">JtInstance::typeID</a></div><div class="ttdeci">virtual TypeID typeID() const</div><div class="ttdoc">Return the TypeID for instance.</div></div>
<div class="ttc" id="aclass_jt_instance_html_aac40720af779b24d91a1c011b784d232"><div class="ttname"><a href="class_jt_instance.html#aac40720af779b24d91a1c011b784d232">JtInstance::classTypeID</a></div><div class="ttdeci">static TypeID classTypeID()</div><div class="ttdoc">Return the TypeID for class.</div></div>
<div class="ttc" id="aclass_jt_part_html"><div class="ttname"><a href="class_jt_part.html">JtPart</a></div><div class="ttdoc">The object for defining leaf nodes in a product structure hierarchy. These objects are the only ones ...</div><div class="ttdef"><b>Definition:</b> JtHierarchy.h:184</div></div>
<div class="ttc" id="aclass_jt_part_html_a7f736c8d590b07affa76c7b8a62f5e1f"><div class="ttname"><a href="class_jt_part.html#a7f736c8d590b07affa76c7b8a62f5e1f">JtPart::typeID</a></div><div class="ttdeci">virtual TypeID typeID() const</div><div class="ttdoc">Return the TypeID for instance.</div></div>
<div class="ttc" id="aclass_jt_part_html_a98f142705b1ca8a98d1da475dbcdc8ca"><div class="ttname"><a href="class_jt_part.html#a98f142705b1ca8a98d1da475dbcdc8ca">JtPart::isOfSubType</a></div><div class="ttdeci">virtual bool isOfSubType(TypeID id) const</div><div class="ttdoc">Return true if instance belong to the type id.</div></div>
<div class="ttc" id="aclass_jt_part_html_ab4953025138924710e35060c2ab8787c"><div class="ttname"><a href="class_jt_part.html#ab4953025138924710e35060c2ab8787c">JtPart::numPolyShapes</a></div><div class="ttdeci">virtual int numPolyShapes(int LODNum)=0</div><div class="ttdoc">Returns the number of JtShape in a specified LOD.</div></div>
<div class="ttc" id="aclass_jt_part_html_adf77884066a5cfa19f4ef7070eb118a1"><div class="ttname"><a href="class_jt_part.html#adf77884066a5cfa19f4ef7070eb118a1">JtPart::numPolyLODs</a></div><div class="ttdeci">virtual int numPolyLODs()=0</div><div class="ttdoc">Get the number of faceted shape geometry LODs.</div></div>
<div class="ttc" id="aclass_jt_part_html_af2caef9c612bc71c6712d1fdd3267ffb"><div class="ttname"><a href="class_jt_part.html#af2caef9c612bc71c6712d1fdd3267ffb">JtPart::classTypeID</a></div><div class="ttdeci">static TypeID classTypeID()</div><div class="ttdoc">Return the TypeID for class.</div></div>
<div class="ttc" id="aclass_jt_unit_hierarchy_html"><div class="ttname"><a href="class_jt_unit_hierarchy.html">JtUnitHierarchy</a></div><div class="ttdoc">The intermediate class implementing units and PMI for JtAssembly and JtPart.</div><div class="ttdef"><b>Definition:</b> JtHierarchy.h:88</div></div>
<div class="ttc" id="aclass_jt_unit_hierarchy_html_a1ece73735ec5419a7933acd1293af472"><div class="ttname"><a href="class_jt_unit_hierarchy.html#a1ece73735ec5419a7933acd1293af472">JtUnitHierarchy::classTypeID</a></div><div class="ttdeci">static TypeID classTypeID()</div><div class="ttdoc">Return the TypeID for class.</div></div>
<div class="ttc" id="aclass_jt_unit_hierarchy_html_a2a3611484d5bb7302f3090297664e69c"><div class="ttname"><a href="class_jt_unit_hierarchy.html#a2a3611484d5bb7302f3090297664e69c">JtUnitHierarchy::typeID</a></div><div class="ttdeci">virtual TypeID typeID() const</div><div class="ttdoc">Return the TypeID for instance.</div></div>
<div class="ttc" id="aclass_jt_unit_hierarchy_html_add82bc6b589da0c1f7595aca49dfa5d4"><div class="ttname"><a href="class_jt_unit_hierarchy.html#add82bc6b589da0c1f7595aca49dfa5d4">JtUnitHierarchy::isOfSubType</a></div><div class="ttdeci">virtual bool isOfSubType(TypeID id) const</div><div class="ttdoc">Return true if instance belong to the type id.</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
